package com.gemme.gemme.view;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: yangcheng
 * @CreateDate: 2020/8/21 16:51
 */
public class ShopOrderResponse {
    //地址ID
    private Long addressId;
    //订单项
    private List<ProductUU> productUU;
    //令牌
    private String orderToken;

    //优惠卷ID
    private Long discountId;

    //实际支付价格
    private BigDecimal subTotal;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public List<ProductUU> getProductUU() {
        return productUU;
    }

    public void setProductUU(List<ProductUU> productUU) {
        this.productUU = productUU;
    }

    public String getOrderToken() {
        return orderToken;
    }

    public void setOrderToken(String orderToken) {
        this.orderToken = orderToken;
    }

    public Long getDiscountId() {
        return discountId;
    }

    public void setDiscountId(Long discountId) {
        this.discountId = discountId;
    }

    public BigDecimal getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(BigDecimal subTotal) {
        this.subTotal = subTotal;
    }

    public static  class ProductUU{
        //商品ID+UUID+数量
        private Long categoryId;
        private String uuId;
        private Integer categoryCount;
        //商品规格信息
        private String attrName;
        //商品备注
        private String note;
        //活动ID
        private Long activeId;
        //发票ID
        private Long invoiceId;
        private String productImage;

        public String getProductImage() {
            return productImage;
        }

        public void setProductImage(String productImage) {
            this.productImage = productImage;
        }

        public Long getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(Long categoryId) {
            this.categoryId = categoryId;
        }

        public String getUuId() {
            return uuId;
        }

        public void setUuId(String uuId) {
            this.uuId = uuId;
        }

        public Integer getCategoryCount() {
            return categoryCount;
        }

        public void setCategoryCount(Integer categoryCount) {
            this.categoryCount = categoryCount;
        }

        public String getAttrName() {
            return attrName;
        }

        public void setAttrName(String attrName) {
            this.attrName = attrName;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public Long getActiveId() {
            return activeId;
        }

        public void setActiveId(Long activeId) {
            this.activeId = activeId;
        }

        public Long getInvoiceId() {
            return invoiceId;
        }

        public void setInvoiceId(Long invoiceId) {
            this.invoiceId = invoiceId;
        }
    }


}

